import { Module } from '@nestjs/common';
import { APP_FILTER } from '@nestjs/core';
import { HttpBadRequestExceptionFilter } from './filters/http-exception-filter';
import { TestController } from './controllers/test-controller';

console.log('');

@Module({
  imports: [],
  controllers: [
    TestController
  ],
  providers: [
    // exception filters
    { provide: APP_FILTER, useClass: HttpBadRequestExceptionFilter },

    // services
    // ...
  ],
})
export class AppModule {}
